using UnityEngine;

namespace AudioStudio
{
    /// <summary>
    /// GameObject��Start/OnEnableʱ����audioEvent�ض���Ч
    /// </summary>
    [AddComponentMenu("AudioStudio/PostEvent")]
    public class PostEvent : AudioEventHandler
    {
        public AudioEvent[] audioEvents;

        public override void HandleEnableEvent()
        {
            if (AkSoundEngine.IsInitialized())
            {
                AudioManager.Instance.PostEvents(this.Player, audioEvents);
            }
        }

        public override void HandleDisableEvent()
        {
            
        }
    }
}
